package com.serviceImpl;

import java.util.Date;
import java.util.List;

import com.dao.*;
import com.entity.*;
import com.service.DeviceService;
import com.service.ParameterService;

public class ParameterServiceImpl implements ParameterService {

	private ParameterDao parameterDao;

	public void setParameterDao(ParameterDao parameterDao) {
		this.parameterDao = parameterDao;
	}

	@Override
	public List<Parameter> findAllDeviceType() {
		return parameterDao.findAllDeviceType();
	}

	@Override
	public List<Parameter> findAllDeviceModelByDeviceType(String deviceType) {
		return parameterDao.findAllDeviceModelByDeviceType(deviceType);
	}

	@Override
	public boolean addParameter(Parameter parameter) {
		return parameterDao.addParameter(parameter);
	}

	@Override
	public Parameter findParameterByID(int parameterId) {
		return parameterDao.findParameterByID(parameterId);
	}

	@Override
	public Parameter findParameterByDeviceTypeAndDeviceModel(String deviceType,
			String deviceModel) {
		return parameterDao.findParameterByDeviceTypeAndDeviceModel(deviceType, deviceModel);
	}
	

}
